package com.zmm.study.mes.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zmm.study.mes.entity.basedata.SpTableManagerItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * description
 * name SpTableManagerItemDao
 *
 * @author Zebulon
 * @date by 2022-05-05 21:28:11
 */
@Mapper
public interface SpTableManagerItemDao extends BaseMapper<SpTableManagerItem> {

    /**
     * 根据主表ID 查询该表的明细
     *
     * @param tableNameId 关联主表ID
     * @return 表字段明细
     */
    List<SpTableManagerItem> queryItemBytableNameId(@Param("tableNameId") String tableNameId);

    /**
     * 根据主表ID 删除明细
     *
     * @param tableNameId 关联主表ID
     */
    void deleteItemBytableNameId(@Param("tableNameId") String tableNameId);
}
